package bairui.international.console.web.controller.delicate.category.properties;

/**
 * @see bairui.international.console.web.controller.delicate.category.properties.PropertiesDetail_BaseFilter
 *
 */
class PropertiesDetail_Filter

{
	
	/**
	 * 过滤扩展接口
	 */
	static interface FilterExtends {
		com.querydsl.core.types.Predicate gainName(
			String name
		);
	}
	
	final static com.querydsl.core.BooleanBuilder query(
		bairui.international.model.domain.jpa.QTB_ProductCategoryProperty QRoot,
		javax.servlet.http.HttpServletRequest request
		,FilterExtends filterExtends
	) {
		com.querydsl.core.BooleanBuilder query = query(
				QRoot
			);
			/* comment 附加过滤属性 */
			if(null != request.getParameter("name")){
				query.and(filterExtends.gainName(
					com.sh_lianjing.string.util.Util_String.parseToType(
							request.getParameter("name"), 
							String.class, 
							"yyyy-MM-dd"
						)
				));
			}
	;
		return query;
	}
	
	final static com.querydsl.core.BooleanBuilder query(
		bairui.international.model.domain.jpa.QTB_ProductCategoryProperty QRoot
	) {
		com.querydsl.core.BooleanBuilder builder = new com.querydsl.core.BooleanBuilder();
	
		return builder;
	}
	
}
